package com.ruoyi.mes.domain;

import java.util.Date;

import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 车间任务对象 wksp_task
 *
 * @author LongAndHao
 * @date 2023-04-04
 */
public class WkspTask extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /**  */
    private Long id;

    /** 生产计划明细ID */
    private Long progDetailId;

    /** 产品id */
    @Excel(name = "产品id")
    private Long proId;

    /** 车间任务编码 */
    @Excel(name = "车间任务编码")
    private String wkspCode;

    /** 计划生产数量 */
    @Excel(name = "计划生产数量")
    private Long wkspPlanQuantity;

    /** 已生产数量 */
    private Long wkspReadyQuantity;
    /** 未生产数量 */
    private Long wkspNoQuantity;
    /** 节拍 */
    private Long circleTime;
    /** 产线名称 */
    private String lineName;
    /** 产线id */
    private Long lineId;
    /** 合格率*/
    private Long pass_rate;
    //不良率
    private Long defective_rate;
    private Long pass;

    public Long getPass() {
        return pass;
    }

    public void setPass(Long pass) {
        this.pass = pass;
    }

    public Long getPass_rate() {
        return pass_rate;
    }

    public void setPass_rate(Long pass_rate) {
        this.pass_rate = pass_rate;
    }

    public Long getDefective_rate() {
        return defective_rate;
    }

    public void setDefective_rate(Long defective_rate) {
        this.defective_rate = defective_rate;
    }

    public String getLineName() {
        return lineName;
    }

    public void setLineName(String lineName) {
        this.lineName = lineName;
    }

    public Long getLineId() {
        return lineId;
    }

    public void setLineId(Long lineId) {
        this.lineId = lineId;
    }

    public Long getCircleTime() {
        return circleTime;
    }

    public void setCircleTime(Long circleTime) {
        this.circleTime = circleTime;
    }

    public Long getWkspNoQuantity() {
        return wkspNoQuantity;
    }

    public void setWkspNoQuantity(Long wkspNoQuantity) {
        this.wkspNoQuantity = wkspNoQuantity;
    }

    /** 开始时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "开始时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date startTime;

    /** 结束时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "结束时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date overTime;

    /** 开工状态  0 - 未开工 1 - 生产中 2 -已完工 3 - 已取消*/
    @Excel(name = "开工状态  0 - 未开工 1 - 生产中 2 -已完工")
    private Long operationStatus;

    /** 领料状态 0 - 未申请 1 - 已申请 2 - 已领料 */
    @Excel(name = "领料状态 0 - 未申请 1 - 已申请 2 - 已领料")
    private Long pickingStatus;

    /** 产品信息 */
    @TableField(exist = false)
    private ProInfo proInfo;

    /** 订单信息 */
    @TableField(exist = false)
    private ProOrder proOrder;

    /** 生产进度 */
    @TableField(exist = false)
    private float productionSchedule;

    public float getProductionSchedule() {
        return productionSchedule;
    }

    public void setProductionSchedule(float productionSchedule) {
        this.productionSchedule = productionSchedule;
    }

    public void setId(Long id)
    {
        this.id = id;
    }

    public ProInfo getProInfo() {
        return proInfo;
    }

    public void setProInfo(ProInfo proInfo) {
        this.proInfo = proInfo;
    }

    public ProOrder getProOrder() {
        return proOrder;
    }

    public void setProOrder(ProOrder proOrder) {
        this.proOrder = proOrder;
    }

    public Long getId()
    {
        return id;
    }

    public Long getProgDetailId() {
        return progDetailId;
    }

    public void setProgDetailId(Long progDetailId) {
        this.progDetailId = progDetailId;
    }

    public Long getProId() {
        return proId;
    }

    public void setProId(Long proId) {
        this.proId = proId;
    }

    public Long getOperationStatus() {
        return operationStatus;
    }

    public void setOperationStatus(Long operationStatus) {
        this.operationStatus = operationStatus;
    }

    public Long getPickingStatus() {
        return pickingStatus;
    }

    public void setPickingStatus(Long pickingStatus) {
        this.pickingStatus = pickingStatus;
    }

    public void setWkspCode(String wkspCode)
    {
        this.wkspCode = wkspCode;
    }

    public String getWkspCode()
    {
        return wkspCode;
    }
    public void setWkspPlanQuantity(Long wkspPlanQuantity)
    {
        this.wkspPlanQuantity = wkspPlanQuantity;
    }

    public Long getWkspPlanQuantity()
    {
        return wkspPlanQuantity;
    }
    public void setWkspReadyQuantity(Long wkspReadyQuantity)
    {
        this.wkspReadyQuantity = wkspReadyQuantity;
    }

    public Long getWkspReadyQuantity()
    {
        return wkspReadyQuantity;
    }
    public void setStartTime(Date startTime)
    {
        this.startTime = startTime;
    }

    public Date getStartTime()
    {
        return startTime;
    }
    public void setOverTime(Date overTime)
    {
        this.overTime = overTime;
    }

    public Date getOverTime()
    {
        return overTime;
    }


    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("wkspCode", getWkspCode())
            .append("wkspPlanQuantity", getWkspPlanQuantity())
            .append("wkspReadyQuantity", getWkspReadyQuantity())
            .append("startTime", getStartTime())
            .append("overTime", getOverTime())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .toString();
    }
}
